"""
Task 1

Make a program that has some sentence (a string) on input and returns a dict 
containing all unique words as keys and the number of occurrences as values. 
"""

sentence = input("Enter your sentence: ")
words_list = list(sentence.split(' '))

words_dict = dict()
for word in words_list:
    if word in words_dict:
        words_dict[word] += 1
    else:
        words_dict[word] = 1
print(words_dict)